//user_api.js
import http from '@/public/js/http.js'

export const regist = (data) => {
    return http({
        url: '/user/regist',
        method: 'post',
        data
    })
};
export const login = (data) => {
    return http({
        url: '/user/login',
        method: 'post',
        data
    })
};
export const autoLogin = (data) => {
    return http({
        url: '/user/autoLogin',
        method: 'post',
        data
    })
};
export const out = (data) =>{
    return http({
        url: '/user/out',
        method: 'get',
        params: data
    })
};